<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/* JoomLeague League Management and Prediction Game for Joomla!
 * Copyright (C) 2007  Robert Moss
 *  
 * Homepage: http://www.joomleague.de
 * Support: htt://www.joomleague.de/forum/
 * 
 * This file is part of JoomLeague.
 *  
 * JoomLeague is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Please note that the GPL states that any headers in files and
 * Copyright notices as well as credits in headers, source files
 * and output (screens, prints, etc.) can not be removed.
 * You can extend them with your own credits, though...
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
*/ 

?>

<!-- Header with Project Name-->
<?php $print_icon = 0 ; // set to 1 or use overall template to enable print function ?>
<div class="componentheading" <?php if ($print_icon == "1" OR $overall_config['show_print_button'] == "1") echo 'style="float:left;"';?>><?php echo HTML_joomleague::showTitle($project, $overall_config['project_heading_type']); ?></div>
<!-- Druckfunktion -->
<?php if ($print_icon == "1" OR $overall_config['show_print_button'] == "1") {
HTML_joomleague::PrintIcon( $row, $params, false, '' );
};?>
<!-- Druckfunktion Ende -->

<!-- Header END -->

<!-- Bereichsüberschrift z.B Tabelle, Tippabgabe usw. -->
<table width="100%" class="contentpaneopen">
	<tr>
		<td class="contentheading"><?php echo $playground->name;?></td>
	</tr>
</table>
<!-- Bereichsüberschrift Ende -->

<br />

<table width="96%" align="center" border="0" cellpadding="3" cellspacing="0">
  <tr class="sectiontableheader">
    <td colspan="2"><?php echo _JL_ADMIN_EDIT_LIST_PLAYGROUNDS_PLAYGROUND;?></td>
  </tr>
  <tr><td></td></tr>
  <tr>
   <td width="30%"><b><?php echo _JL_ADMIN_EDIT_LIST_PLAYGROUNDS_PLAYGROUND_SHORT;?></b></td>
   <td width="70%"><?php echo $playground->short_name;?></td>
  </tr>
  <tr>
    <td width="30%"><b><?php echo _JL_CLUB_ADDRESS;?></b></td>
    <td width="70%"><?php echo $playground->address;?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="left"><?php printf("%s %s<br />%s", $playground->zip, $playground->city, $countryname);?></td>
  </tr>
<?php if ($playground->link) { ?>
  <tr>
    <td><b>&nbsp;</b></td>
    <td><a href="<?php echo $playground->link;?>" target='_blank'><?php echo _JL_PLAYGROUND_LINK;?></a></td>
  </tr>
<?php 
  }
  if ($playground->max_visitors) { ?>
  <tr>
    <td><b><?php echo _JL_ADMIN_EDIT_FORM_PLAYGROUNDS_MAX_VISITORS;?></b></td>
    <td><?php echo $playground->max_visitors;?></td>
  </tr>
<?php } ?>
<!-- <?php # if ($playground->website) { ?>
  <tr>
    <td><b><?php # echo _JL_CLUB_WWW;?></b></td>
    <td><a href="<?php # echo $playground->website;?>" target='_blank'><?php # echo $playground->website;?></a></td>
  </tr>
<?php # } ?>
-->
</table>

<br />

<?php if ($playground->picture) { ?>
<table width="96%" align="center" border="0" cellpadding="3" cellspacing="0">
  <tr>
    <td><?php echo _JL_CLUB_STADIUM_PICTURE;?></td>
  </tr>
  <tr><td></td></tr>  
  <tr>
 	  <td align="center"><img src="<?php echo $mosConfig_live_site ?>/<?php echo $playground->picture;?>" alt="<?php  echo $playground->name?>" title="<?php  echo $playground->name?>" /></td>
</tr>
</table>
<?php } ?>

<?php if ($playground->description) { ?>
<table width="96%" align="center" border="0" cellpadding="3" cellspacing="0">
  <tr class="sectiontableheader">
	 <td><?php echo _JL_ADMIN_EDIT_LIST_IMPORTS_INFO;?></td>
  </tr>
  <tr><td></td></tr>  
  <tr>
    <td><?php echo HTML_joomleague::makemambots($playground->description);?></td>
  </tr>
</table>
<?php } ?>

<br />

<!-- Now show teams of this club -->
<?php
if (count($newrows)>0) {
	foreach ($newrows AS $key=>$value) {
	?>
<table width="96%" align="center" border="0" cellpadding="3" cellspacing="0">
  <tr class="sectiontableheader">
  	<td><?php echo _JL_ADMIN_EDIT_FRONTEND_TEAMS." ".$value->project_name;?></td>
  </tr>
  <tr><td></td></tr>  
  <tr>
    <td>
<ul>
<?php
		foreach ($value->team_id AS $team) {
			echo '<li><a href="'.sefRelToAbs('index.php?option=com_joomleague&amp;func=showTeamInfo&amp;p='.$key.'&amp;tid='.$team.'&amp;Itemid='.$Itemid).'">'.$value->teaminfos[$team][0]->name.'</a>';
			if ($value->teaminfos[$team][0]->short_name) { 
				echo " (".$value->teaminfos[$team][0]->short_name.")";
			}
      echo '</li>'; 
			if ($value->teaminfos[$team][0]->description) { ?>
  <br /><?php echo _JL_TEAMINFO;?>:  
<?php echo $value->teaminfos[$team][0]->description;?></li>
<?php
			}
		}
		
?>
</ul></td>
  </tr>
<?php
  }
  echo "</table>";
}
?>

<!-- Print Button START -->
<?php $back_button = 0 ; // set to 1 or use overall template to enable back button ?>
<?php if ($back_button > 0 OR $overall_config['show_back_button'] > 0) {;?>
<?php if ($overall_config['show_back_button'] == "1") echo '<div align="left">'; else echo '<div align="right">';?>
<?php
$params = & new mosParameters( '' );
$params->def( 'back_button', true );
$params->def( 'popup', false );
mosHTML::BackButton( $params );
?></div> 
<?php };?>
<!-- Print Button END -->
